package com.user.service.impl;


import com.user.mapper.FeedbackMapper;
import com.user.service.IFeedbackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.shop.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 意见反馈 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-12-18
 */
@Service
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements IFeedbackService {
@Autowired
private FeedbackMapper feedbackMapper;
    @Override
    public List<Feedback> findList() {
        return feedbackMapper.selectList(null);
    }

    @Override
    public void status(Integer id) {
        feedbackMapper.status(id);
    }

    @Override
    public Feedback find(Integer id) {
        return feedbackMapper.selectById(id);
    }
}
